import request from '@/utils/request'

export default {
  // 添加人物地点信息
  addFigureLocation(figureLocation) {
    return request({
      url: '/visualization/figurelocation/addFigureLocation',
      method: 'post',
      data: figureLocation
    })
  },

  // 修改人物地点信息
  updateFigureLocation(figureLocation) {
    return request({
      url: '/visualization/figurelocation/updateFigureLocation',
      method: 'post',
      data: figureLocation
    })
  },

  // 查询人物地点信息
  getFigureLocation(figureId) {
    return request({
      url: `/visualization/figurelocation/getFigureLocation/${figureId}`,
      method: 'get'
    })
  },

  // 删除人物地点
  deleteFigureLocation(locationId) {
    return request({
      url: `/visualization/figurelocation/deleteFigureLocation/${locationId}`,
      method: 'delete'
    })
  },
  // 删除所有人物地点
  deleteLocationByFigureId(figureId) {
    return request({
      url: `/visualization/figurelocation/deleteLocationByFigureId/${figureId}`,
      method: 'delete'
    })
  },

  // 删除选中的人物地点
  deleteSelectLocations(ids) {
    return request({
      url: `/visualization/figurelocation/deleteSelectLocations`,
      method: 'delete',
      data:ids
    })
  }

}
